import { defineStore } from "pinia";
interface tvInfo {
  name: string;
  type: string;
  id: number;
  active: boolean;
  description: string;
}
interface State {
  tvShow: string;
  tvVedio: number;
  tvList: tvInfo[];
  tvArr1: Array<string>;
  tvArr2: number[];
  data: number;
}
export const useOtherStore = defineStore("otherC", {
  state: (): State => {
    return {
      tvArr1: [],
      tvArr2: [],
      tvList: [],
      tvShow: "",
      tvVedio: 0,
      data: 8,
    };
  },
  getters: {
    tvActive: (state) => {
      return state.tvList.filter((tv) => tv.active);
    },
  },
});
